package com.xyh.student.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xyh.student.dao.OptionDao;
import com.xyh.student.entity.Option;
import com.xyh.student.entity.ResponseData;
import com.xyh.student.service.OptionService;

@Service("optionService")
public class OptionServiceImpl implements OptionService {

    @Autowired
    private OptionDao optionDao;

    @Override
    public ResponseData insertOption(Option option) {
        try {
            optionDao.insertOption(option);
            return new ResponseData("0", "请求成功",option);
        } catch (Exception e) {
            System.out.println(e);
            return new ResponseData("888", "请求失败");
        }
    }
    
}
